/*
 * Copyright 2012 NJUT  qixiaobo. All rights reserved.
 */
package com.fujitsu.nanjing.tieba.constrant;
/**
 * CommonParamter.java
 * 
 * @author Qixiaobo-win8
 */
public class CommonParamter {

	/******** Group id 设置 ***************/
	public static final String 乞丐 = "1";
	public static final String 贫民 = "2";
	public static final String 新手上路 = "3";
	public static final String 初级会员 = "4";
	public static final String 中级会员 = "5";
	public static final String 高级会员 = "6";
	public static final String 论坛元老 = "7";
	public static final String 管理员 = "A";
	public static final String 游客 = "G";
	public static final String 版主 = "M";
	public static final String 超级版主 = "S";
	/******** Group id 设置结束 ***************/
	public static final int 默认分页长度 = 10;
	public static final String 按照置顶排序 = "topScope asc";
	public static final String 默认主题排序条件 = 按照置顶排序 + ",updateTime desc";
	public static final String 默认回复排序条件 = "createTime asc";
	public static final String 默认排序条件 = "createTime desc";
	public static final short 默认悬赏 = 0;
	public static final int 起始页码 = 0;
	public static final int 初始积分 = 50;
	public static final int 发帖基本分 = 10;
	public static final int 回帖基本分 = 5;
	public static final int 精华得分 = 20;
	public static final short 最佳回复 = 20;
	public static final int 热门得分 = 50;
	/**
	 * 上传文件存储位置
	 * */
	public static final String uploadPath = "/upload";
	public static final String avaterPath = uploadPath + "/avatar";

	public static final String 锁定 = "L";
	public static final String 正常 = "N";
	public static final String 删除帖子 = "R";

	/***************** 帖子类型 开始 ************************/

	public static final int FOLDER_COMMON = 0;
	public static final int FOLDER_NEW = 1;
	public static final int FOLDER_HOT = 2;
	public static final int FOLDER_LOCKED = 3;

	/***************** 帖子类型 结束 ************************/
	/**
	 * 帖子达到热门标准的最小数量
	 * */
	public static final String HOT_MIN_COUNT = "hotMinCount";
	/**
	 * 应用的根目录，由spring负责初始化
	 * */
	public static String webRoot = "";

	public static final String PASSWORD_EMPTY = "密码为空！";
	public static final String PASSWORD_ERROR = "密码不正确！";

	public static final String COOK_NAME = "_myforum_qixiaobo";

	public static final int 精华 = 1;

	public static final int 悬赏 = 2;

	public static final String YES = "T";

	public static final String NO = "F";

	public static final String 用户类型 = "M";

	public static final String 管理类型 = "S";

	public static final int ERROR_MAX_TIMES = 5;

	public static final int DEFAULT_REPLYID = 0;
	/*************** 用户账户组别类型 *************/
	public static final String MEMBER_GROUP = "M";
	public static final String SYSTEM_GROUP = "S";

	public static final int maxShortMsgs = 50;
}
